package com.hzdl.library.service.impl;

import com.hzdl.library.dao.SelectUserByOneDao;
import com.hzdl.library.dao.impl.SelectUserByOneDaoImpl;
import com.hzdl.library.domain.ReaderCard;
import com.hzdl.library.domain.ReaderInfo;
import com.hzdl.library.service.SelectUserByOne;

public class SelectUserByOneImpl implements SelectUserByOne {

    SelectUserByOneDao selectUserByOneDao = new SelectUserByOneDaoImpl();
    @Override
    public Integer selectByOne(String id) {
        return selectUserByOneDao.selectByOne(id);
    }

    @Override
    public ReaderCard selectReaderCard(Integer id, String passwd) {
        return selectUserByOneDao.selectReaderCard(id,passwd);
    }

    @Override
    public ReaderInfo selectReader(Integer id) {
        return selectUserByOneDao.selectReader(id);
    }

    @Override
    public Integer updateReaderCard(Integer id, String newPass) {
        return selectUserByOneDao.updateReaderCard(id,newPass);
    }
}
